package org.jeecgframework.web.system.pojo.base;

import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;

import javax.xml.soap.Text;

import java.sql.Blob;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.SequenceGenerator;

import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * @Title: Entity
 * @Description: 报价单明细
 * @author onlineGenerator
 * @date 2016-08-03 15:37:59
 * @version V1.0   
 *
 */
@Entity
@Table(name = "cbs_quotation_detail", schema = "")
@SuppressWarnings("serial")
public class CbsQuotationDetailEntity implements java.io.Serializable {
	/**ID */
	private java.lang.String id;
	/**createName*/
	private java.lang.String createName;
	/**createBy*/
	private java.lang.String createBy;
	/**createDate*/
	private java.util.Date createDate;
	/**updateName*/
	private java.lang.String updateName;
	/**updateBy*/
	private java.lang.String updateBy;
	/**updateDate*/
	private java.util.Date updateDate;
	
	/**单价 */
	private java.lang.Integer unitPrice;
	/**优惠价*/
	private java.lang.Integer disCountPrice;
	/**最终价*/
	private java.lang.Integer lastPrice;
	/**小计 */
	private java.lang.Integer total;
	/**数量*/
	private java.lang.Integer num;
	
//	/**报价单id */
//	@Excel(name="报价单id ")
//	private java.lang.String quotationId;
//	
//	/**采购零件id */
//	@Excel(name="采购零件id ")
//	private java.lang.String procurementPartId;
	
	/**报价单关联*/
	private CbsQuotationEntity quotation;
	
	/**采购零件关联*/
	private CbsProcurementPartEntity procurementPart;
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  ID 
	 */
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=32)
	public java.lang.String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  ID 
	 */
	public void setId(java.lang.String id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.Double
	 *@return: java.lang.Double  单价 
	 */
	@Column(name ="UNIT_PRICE",nullable=true,scale=2,length=8)
	public java.lang.Integer getUnitPrice(){
		return this.unitPrice;
	}

	/**
	 *方法: 设置java.lang.Double
	 *@param: java.lang.Double  单价 
	 */
	public void setUnitPrice(java.lang.Integer unitPrice){
		this.unitPrice = unitPrice;
	}
	/**
	 *方法: 取得java.lang.Double
	 *@return: java.lang.Double  小计 
	 */
	@Column(name ="TOTAL",nullable=true,scale=2,length=8)
	public java.lang.Integer getTotal(){
		return this.total;
	}

	/**
	 *方法: 设置java.lang.Double
	 *@param: java.lang.Double  小计 
	 */
	public void setTotal(java.lang.Integer total){
		this.total = total;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  createName
	 */
	@Column(name ="CREATE_NAME",nullable=true,length=50)
	public java.lang.String getCreateName(){
		return this.createName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  createName
	 */
	public void setCreateName(java.lang.String createName){
		this.createName = createName;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  createBy
	 */
	@Column(name ="CREATE_BY",nullable=true,length=50)
	public java.lang.String getCreateBy(){
		return this.createBy;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  createBy
	 */
	public void setCreateBy(java.lang.String createBy){
		this.createBy = createBy;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  createDate
	 */
	@Column(name ="CREATE_DATE",nullable=true)
	public java.util.Date getCreateDate(){
		return this.createDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  createDate
	 */
	public void setCreateDate(java.util.Date createDate){
		this.createDate = createDate;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  updateName
	 */
	@Column(name ="UPDATE_NAME",nullable=true,length=50)
	public java.lang.String getUpdateName(){
		return this.updateName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  updateName
	 */
	public void setUpdateName(java.lang.String updateName){
		this.updateName = updateName;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  updateBy
	 */
	@Column(name ="UPDATE_BY",nullable=true,length=50)
	public java.lang.String getUpdateBy(){
		return this.updateBy;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  updateBy
	 */
	public void setUpdateBy(java.lang.String updateBy){
		this.updateBy = updateBy;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  updateDate
	 */
	@Column(name ="UPDATE_DATE",nullable=true)
	public java.util.Date getUpdateDate(){
		return this.updateDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  updateDate
	 */
	public void setUpdateDate(java.util.Date updateDate){
		this.updateDate = updateDate;
	}
	
	/**
	 * 优惠价
	 * @return
	 */
	@Column(name="disCount_price")
	public Integer getDisCountPrice() {
		return disCountPrice;
	}
	
	
	@Column(name="last_price")
	public java.lang.Integer getLastPrice() {
		return lastPrice;
	}

	public void setLastPrice(java.lang.Integer lastPrice) {
		this.lastPrice = lastPrice;
	}

	public void setDisCountPrice(Integer disCountPrice) {
		this.disCountPrice = disCountPrice;
	}
	@Column(name="num")
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="QUOTATION_ID")
	public CbsQuotationEntity getQuotation() {
		return quotation;
	}

	public void setQuotation(CbsQuotationEntity quotation) {
		this.quotation = quotation;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="PROCUREMENT_PART_ID")
	public CbsProcurementPartEntity getProcurementPart() {
		return procurementPart;
	}

	public void setProcurementPart(CbsProcurementPartEntity procurementPart) {
		this.procurementPart = procurementPart;
	}
	
	
}
